public class CamelContextTracker extends Object implements Closeable
CamelContext
creation and destruction tracker.Modifier and Type | Class and Description |
---|---|
static interface |
CamelContextTracker.Filter |
Constructor and Description |
---|
CamelContextTracker() |
CamelContextTracker(CamelContextTracker.Filter filter) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(CamelContext camelContext)
Called to determine whether this tracker should accept the given context.
|
void |
close()
Closes the tracker so it not longer tracks.
|
void |
contextCreated(CamelContext camelContext)
Called when a context is created.
|
void |
contextDestroyed(CamelContext camelContext)
Called when a context has been shutdown.
|
static void |
notifyContextCreated(CamelContext camelContext) |
static void |
notifyContextDestroyed(CamelContext camelContext) |
void |
open()
Opens the tracker to start tracking when new
CamelContext is created or destroyed. |
public CamelContextTracker()
public CamelContextTracker(CamelContextTracker.Filter filter)
public boolean accept(CamelContext camelContext)
public void contextCreated(CamelContext camelContext)
public void contextDestroyed(CamelContext camelContext)
public final void open()
CamelContext
is created or destroyed.public final void close()
close
in interface Closeable
close
in interface AutoCloseable
public static void notifyContextCreated(CamelContext camelContext)
public static void notifyContextDestroyed(CamelContext camelContext)
Apache Camel