Context.remove
Code IndexAdd Codota to your IDE (free)

Best code snippets using io.vertx.core.Context.remove(Showing top 6 results out of 315)

  • Common ways to obtain Context
private void myMethod () {
Context c =
  • Vertx.currentContext()
  • Vertx vertx;vertx.getOrCreateContext()
  • Smart code suggestions by Codota
}
origin: eclipse/vert.x

@Test
public void testPutGetRemoveData() throws Exception {
 SomeObject obj = new SomeObject();
 vertx.runOnContext(v -> {
  Context ctx = Vertx.currentContext();
  ctx.put("foo", obj);
  ctx.runOnContext(v2 -> {
   assertEquals(obj, ctx.get("foo"));
   assertTrue(ctx.remove("foo"));
   ctx.runOnContext(v3 -> {
    assertNull(ctx.get("foo"));
    testComplete();
   });
  });
 });
 await();
}
origin: io.vertx/vertx-rx-java

/**
 * Remove some data from the context.
 * @param key the key to remove
 * @return true if removed successfully, false otherwise
 */
public boolean remove(String key) { 
 boolean ret = delegate.remove(key);
 return ret;
}
origin: vert-x3/vertx-sync

/**
 * Remove the scheduler for the current context
 */
@Suspendable
public static void removeContextScheduler() {
 Context context = Vertx.currentContext();
 if (context != null) {
  context.remove(FIBER_SCHEDULER_CONTEXT_KEY);
 }
}
origin: io.vertx/vertx-rx-java2

/**
 * Remove some data from the context.
 * @param key the key to remove
 * @return true if removed successfully, false otherwise
 */
public boolean remove(String key) { 
 boolean ret = delegate.remove(key);
 return ret;
}
origin: io.vertx/vertx-rx-java

/**
 * Remove some data from the context.
 * @param key the key to remove
 * @return true if removed successfully, false otherwise
 */
public boolean remove(String key) { 
 boolean ret = delegate.remove(key);
 return ret;
}
origin: io.vertx/vertx-core

@Test
public void testPutGetRemoveData() throws Exception {
 SomeObject obj = new SomeObject();
 vertx.runOnContext(v -> {
  Context ctx = Vertx.currentContext();
  ctx.put("foo", obj);
  ctx.runOnContext(v2 -> {
   assertEquals(obj, ctx.get("foo"));
   assertTrue(ctx.remove("foo"));
   ctx.runOnContext(v3 -> {
    assertNull(ctx.get("foo"));
    testComplete();
   });
  });
 });
 await();
}
io.vertx.coreContextremove

Javadoc

Remove some data from the context.

Popular methods of Context

  • runOnContext
    Run the specified action asynchronously on the same context, some time after the current execution h
  • config
    If the context is associated with a Verticle deployment, this returns the configuration that was spe
  • owner
  • get
    Get some data from the context.
  • put
    Put some data in the context. This can be used to share data between different handlers that share a
  • deploymentID
    If the context is associated with a Verticle deployment, this returns the deployment ID of that depl
  • executeBlocking
    Safely execute some blocking code. Executes the blocking code in the handler blockingCodeHandler usi
  • isOnVertxThread
    Is the current thread a Vert.x thread? That's either a worker thread or an event loop thread
  • isEventLoopContext
    Is the current context an event loop context? NOTE! when running blocking code using io.vertx.core.V
  • isOnEventLoopThread
    Is the current thread an event thread? NOTE! This is not always the same as calling Context#isEventL
  • addCloseHook
  • getInstanceCount
  • addCloseHook,
  • getInstanceCount,
  • isOnWorkerThread,
  • isWorkerContext,
  • processArgs,
  • exceptionHandler,
  • isMultiThreadedWorkerContext,
  • removeCloseHook

Popular classes and methods

  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Proxy (java.net)
    This class represents a proxy setting, typically a type (http, socks) and a socket address. A Proxy
  • DateFormat (java.text)
    DateFormat is an abstract class for date/time formatting subclasses which formats and parses dates
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • LinkedList (java.util)
    Linked list implementation. [Sun docs] [http://java.sun.com/j2se/1.5.0/docs/api/java/util/LinkedList
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Join (org.hibernate.mapping)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)