Modifier and Type | Method and Description |
---|---|
default ResourceContext |
ResourceContext.bindThreadContext()
Binds the ResourceContext to the current thread.
|
ResourceContext |
ResourceContextFactory.create(String name)
Create a new ResourceContext.
|
ResourceContext |
ResourceContextFactory.getThreadContext()
Returns the ResourceContext associated with the current thread.
|
ResourceContext |
ResourceContextFactory.getThreadContext(Thread thread)
Returns the ResourceContext associated with the thread.
|
ResourceContext |
ResourceContextFactory.getTotalsContext()
Returns a ResourceContext that provides the totals for all
ResourceContexts.
|
ResourceContext |
ResourceContextFactory.getUnassignedContext()
Returns the ResourceContext that is the default when a thread is not
associated with a ResourceContext.
|
ResourceContext |
ResourceContextFactory.lookup(String name)
Returns the ResourceContext given by name.
|
static ResourceContext |
ResourceContext.unbindThreadContext()
Unbind the current thread from the ResourceContext.
|
Modifier and Type | Method and Description |
---|---|
Stream<ResourceContext> |
ResourceContextFactory.contexts()
Returns a Stream of the existing ResourceContexts.
|
Copyright © 2014, 2016, Oracle and/or its affiliates. All rights reserved.