Code example for PriorityBlockingQueue

0
 
    private final String mAuthority;
 
    private SyncableProvider mProvider;
 
    private final PriorityBlockingQueue<SyncItem> mPriorityQueue = new PriorityBlockingQueue<LocastSimpleSyncService.SyncItem>();
 
    public ContentProviderClient mContentProviderClient;
 
    public LocastSimpleSyncService() { 
 
        mAuthority = getAuthority();
    } 
 
    @Override 
    public void onCreate() { 
        super.onCreate(); 
        mNetworkClient = ((LocastApplicationCallbacks) getApplication())
                .getNetworkClientForAccount(this, null);
 
        mContentProviderClient = getContentResolver().acquireContentProviderClient(mAuthority);