Tabnine Logo
ResilientFileOutputStream.setContext
Code IndexAdd Tabnine to your IDE (free)

How to use
setContext
method
in
ch.qos.logback.core.recovery.ResilientFileOutputStream

Best Java code snippets using ch.qos.logback.core.recovery.ResilientFileOutputStream.setContext (Showing top 9 results out of 315)

origin: camunda/camunda-bpm-platform

 resilientFos.setContext(context);
 setOutputStream(resilientFos);
} finally {
origin: com.hynnet/logback-core

 resilientFos.setContext(context);
 setOutputStream(resilientFos);
} finally {
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

  resilientFos.setContext(context);
  setOutputStream(resilientFos);
} finally {
origin: Nextdoor/bender

  resilientFos.setContext(context);
  setOutputStream(resilientFos);
} finally {
origin: io.virtdata/virtdata-lib-realer

  resilientFos.setContext(context);
  setOutputStream(resilientFos);
} finally {
origin: tony19/logback-android

resilientFos.setContext(context);
setOutputStream(resilientFos);
successful = true;
origin: ch.qos.logback/core

resilientFos.setContext(context);
setOutputStream(resilientFos);
origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.core

resilientFos.setContext(context);
setOutputStream(resilientFos);
origin: tony19/logback-android

@Test
public void verifyRecuperationAfterFailure() throws Exception {
 File file = new File(CoreTestConstants.OUTPUT_DIR_PREFIX+"resilient"+diff+".log");
 ResilientFileOutputStream rfos = new ResilientFileOutputStream(file, true, FileAppender.DEFAULT_BUFFER_SIZE);
 rfos.setContext(context);
 ResilientFileOutputStream spy = spy(rfos);
 spy.write("a".getBytes());
 spy.flush();
 spy.getChannel().close();
 spy.write("b".getBytes());
 spy.flush();
 Thread.sleep(RecoveryCoordinator.BACKOFF_COEFFICIENT_MIN+10);
 spy.write("c".getBytes());
 spy.flush();
 verify(spy).openNewOutputStream();
}
ch.qos.logback.core.recoveryResilientFileOutputStreamsetContext

Popular methods of ResilientFileOutputStream

  • getChannel
  • <init>
  • postIOFailure
  • flush
  • getFile
  • openNewOutputStream
  • write

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Runner (org.openjdk.jmh.runner)
  • Best IntelliJ plugins
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