Example usage for org.apache.commons.javaflow Continuation getContext

List of usage examples for org.apache.commons.javaflow Continuation getContext

Introduction

In this page you can find the example usage for org.apache.commons.javaflow Continuation getContext.

Prototype

public static Object getContext() 

Source Link

Document

get the current context.

Usage

From source file:com.topekalabs.bigmachine.lib.testutils.SimpleContinuationRunnable.java

@Override
public void run() {
    MutableInt val = (MutableInt) Continuation.getContext();
    val.setValue(FIRST_VALUE);
    count = SECOND_VALUE;/*from  w w w  .j ava 2 s  .  c o  m*/

    Continuation.suspend();

    val = (MutableInt) Continuation.getContext();
    val.setValue(count);
}