public abstract class ClientAndChannelContextHolder extends Object
| Constructor and Description |
|---|
ClientAndChannelContextHolder() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Remove the stored information for the current thread.
|
static ChannelType |
getChannel() |
static ChannelType |
getChannel(ChannelType fallback)
Return the channel associated with the current thread or the given fallback if no channel was
set.
|
static ClientTO |
getClient() |
static void |
setChannel(ChannelType channelType)
Associate the channel with the current thread
|
static void |
setClient(ClientTO client)
Set the client on which the operations of the current thread should be run
|
public static void clear()
public static ChannelType getChannel()
public static ChannelType getChannel(ChannelType fallback)
fallback - the fallback to return if no channel is setpublic static ClientTO getClient()
null has to be treated as the global client execution context.public static void setChannel(ChannelType channelType)
channelType - the channel execution CONTEXTpublic static void setClient(ClientTO client)
client - the client execution CONTEXTCopyright © 2019 Communote team. All rights reserved.