Tabnine Logo
ObjectPipe.isHeadThread
Code IndexAdd Tabnine to your IDE (free)

How to use
isHeadThread
method
in
com.ociweb.pronghorn.pipe.ObjectPipe

Best Java code snippets using com.ociweb.pronghorn.pipe.ObjectPipe.isHeadThread (Showing top 6 results out of 315)

origin: com.ociweb/pronghorn-pipes

public void moveHeadForward() {
  assert(isHeadThread());
  assert(count()<mask);
  head.incrementAndGet();        
}

origin: com.ociweb/pronghorn-pipes

public T headObject() {
  assert(isHeadThread());
  if (count()<mask) {
    return objects[head.get()&mask];
  } else {
    return null;
  }
}
origin: oci-pronghorn/Pronghorn

public T headObject() {
  assert(isHeadThread());
  if (count()<mask) {
    return objects[head.get()&mask];
  } else {
    return null;
  }
}
origin: oci-pronghorn/Pronghorn

/**
 * 
 * @return true if this can move
 */
public boolean tryMoveHeadForward() {
  assert(isHeadThread());
  if (count()<mask) {
    
    head.incrementAndGet();
    return true;
  } else {
    return false;
  }
}
origin: oci-pronghorn/Pronghorn

public void moveHeadForward() {
  assert(isHeadThread());
  assert(count()<mask);
  head.incrementAndGet();        
}

origin: com.ociweb/pronghorn-pipes

/**
 * 
 * @return true if this can move
 */
public boolean tryMoveHeadForward() {
  assert(isHeadThread());
  if (count()<mask) {
    
    head.incrementAndGet();
    return true;
  } else {
    return false;
  }
}
com.ociweb.pronghorn.pipeObjectPipeisHeadThread

Popular methods of ObjectPipe

  • <init>
  • count
  • hasRoomFor
  • headObject
  • isTailThread
  • moveHeadForward
  • moveTailForward
  • publishTailPosition
  • tailObject

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JList (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now