Codota Logo
AsyncFile.pause
Code IndexAdd Codota to your IDE (free)

How to use
pause
method
in
io.vertx.rxjava.core.file.AsyncFile

Best Java code snippets using io.vertx.rxjava.core.file.AsyncFile.pause (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: georocket/georocket

/**
 * Handle a pause message
 * @param msg the message
 */
private void onPause(Message<Boolean> msg) {
 Boolean paused = msg.body();
 if (paused == null || !paused) {
  if (this.paused) {
   log.info("Resuming import");
   this.paused = false;
   for (AsyncFile f : filesBeingImported) {
    f.resume();
   }
  }
 } else {
  if (!this.paused) {
   log.info("Pausing import");
   this.paused = true;
   for (AsyncFile f : filesBeingImported) {
    f.pause();
   }
  }
 }
}
origin: georocket/georocket

progress.setCurrent(bytesWritten.getAndAdd(data.length()));
if (out.writeQueueFull()) {
 file.pause();
 out.drainHandler(v -> file.resume());
io.vertx.rxjava.core.fileAsyncFilepause

Popular methods of AsyncFile

  • close
    Close the file. The actual close happens asynchronously. The handler will be called when the close i
  • flush
    Same as io.vertx.rxjava.core.file.AsyncFile#flush but the handler will be called when the flush is c
  • resume
  • write
    Write a io.vertx.rxjava.core.buffer.Buffer to the file at position position in the file, asynchronou
  • <init>
  • endHandler
  • exceptionHandler
  • getDelegate
  • handler
  • newInstance
  • read
    Reads length bytes of data from the file at position position in the file, asynchronously. The read
  • rxClose
    Close the file. The actual close happens asynchronously. The handler will be called when the close i
  • read,
  • rxClose

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • getSystemService (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now