Tabnine Logo
FolderWatchSchema
Code IndexAdd Tabnine to your IDE (free)

How to use
FolderWatchSchema
in
com.ociweb.pronghorn.stage.file.schema

Best Java code snippets using com.ociweb.pronghorn.stage.file.schema.FolderWatchSchema (Showing top 2 results out of 315)

origin: oci-pronghorn/Pronghorn

public static void consume(Pipe<FolderWatchSchema> input) {
  while (PipeReader.tryReadFragment(input)) {
    int msgIdx = PipeReader.getMsgIdx(input);
    switch(msgIdx) {
      case MSG_NEWFILE_1:
        consumeNewFile(input);
      break;
      case MSG_UPDATEDFILE_2:
        consumeUpdatedFile(input);
      break;
      case MSG_DELETEDFILE_3:
        consumeDeletedFile(input);
      break;
      case -1:
        //requestShutdown();
      break;
    }
    PipeReader.releaseReadLock(input);
  }
}
origin: oci-pronghorn/Pronghorn

Pipe<FolderWatchSchema>[] output = Pipe.buildPipes(filePatterns.length, FolderWatchSchema.instance.newPipeConfig(10,64));
Pipe<FolderWatchSchema> defaultOutput = FolderWatchSchema.instance.newPipe(4, 64);
WatchServiceStage.newInstance(gm, pathText, filePatterns, output, defaultOutput, 
              WatchServiceStage.EVENT_CREATE|WatchServiceStage.EVENT_DELETE);
com.ociweb.pronghorn.stage.file.schemaFolderWatchSchema

Most used methods

  • consumeDeletedFile
  • consumeNewFile
  • consumeUpdatedFile
  • newPipe
  • newPipeConfig

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Path (java.nio.file)
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Github Copilot 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