public class SMailCallbackContext extends Object
| 修飾子とタイプ | クラスと説明 |
|---|---|
protected static class |
SMailCallbackContext.InheritablePreparedMessageHook |
static interface |
SMailCallbackContext.SMailCallbackContextHolder
The holder of for callback context.
|
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static SMailCallbackContext.SMailCallbackContextHolder |
_defaultHolder
The default holder for callback context, using thread local.
|
protected static ThreadLocal<SMailCallbackContext> |
_defaultThreadLocal
The default thread-local for this.
|
protected static SMailCallbackContext.SMailCallbackContextHolder |
_holder
The holder for callback context, might be changed.
|
protected static boolean |
_locked
Is this static world locked?
|
protected SMailPreparedMessageHook |
_preparedMessageHook |
| コンストラクタと説明 |
|---|
SMailCallbackContext() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected static void |
assertNotLocked()
Assert this is not locked.
|
static void |
clearCallbackContextOnThread()
Clear callback context on thread.
|
protected static void |
clearIfNoInterface(SMailCallbackContext context) |
static void |
clearPreparedMessageHookOnThread() |
protected SMailCallbackContext.InheritablePreparedMessageHook |
createInheritablePreparedMessageHook(SMailPreparedMessageHook preparedMessageHook) |
protected static SMailCallbackContext.SMailCallbackContextHolder |
getActiveHolder()
Get the active holder for callback context.
|
static SMailCallbackContext |
getCallbackContextOnThread()
Get callback context on thread.
|
protected static SMailCallbackContext |
getOrCreateContext() |
SMailPreparedMessageHook |
getPreparedMessageHook() |
boolean |
hasAnyInterface() |
static boolean |
isExistCallbackContextOnThread()
Is existing callback context on thread?
|
static boolean |
isExistPreparedMessageHookOnThread() |
static boolean |
isLocked()
Is this static world locked?
|
static void |
lock()
Lock this static world, e.g. not to set the holder of thread-local.
|
static void |
setCallbackContextOnThread(SMailCallbackContext callbackContext)
Set callback context on thread.
|
void |
setPreparedMessageHook(SMailPreparedMessageHook preparedMessageHook) |
static void |
setPreparedMessageHookOnThread(SMailPreparedMessageHook preparedMessageHook) |
String |
toString() |
static void |
unlock()
Unlock this static world, e.g. to set the holder of thread-local.
|
static void |
useSurrogateHolder(SMailCallbackContext.SMailCallbackContextHolder holder)
Use the surrogate holder for callback context.
|
protected static final ThreadLocal<SMailCallbackContext> _defaultThreadLocal
protected static final SMailCallbackContext.SMailCallbackContextHolder _defaultHolder
protected static SMailCallbackContext.SMailCallbackContextHolder _holder
protected static boolean _locked
protected SMailPreparedMessageHook _preparedMessageHook
public static SMailCallbackContext getCallbackContextOnThread()
public static void setCallbackContextOnThread(SMailCallbackContext callbackContext)
callbackContext - The context of callback. (NotNull)public static boolean isExistCallbackContextOnThread()
public static void clearCallbackContextOnThread()
protected static SMailCallbackContext.SMailCallbackContextHolder getActiveHolder()
public static void useSurrogateHolder(SMailCallbackContext.SMailCallbackContextHolder holder)
holder - The holder instance. (NullAllowed: if null, use default holder)public static boolean isLocked()
public static void lock()
public static void unlock()
protected static void assertNotLocked()
public static void setPreparedMessageHookOnThread(SMailPreparedMessageHook preparedMessageHook)
public static boolean isExistPreparedMessageHookOnThread()
public static void clearPreparedMessageHookOnThread()
protected static SMailCallbackContext getOrCreateContext()
protected static void clearIfNoInterface(SMailCallbackContext context)
public boolean hasAnyInterface()
public SMailPreparedMessageHook getPreparedMessageHook()
public void setPreparedMessageHook(SMailPreparedMessageHook preparedMessageHook)
protected SMailCallbackContext.InheritablePreparedMessageHook createInheritablePreparedMessageHook(SMailPreparedMessageHook preparedMessageHook)
Copyright © 2015–2020 The DBFlute Project. All rights reserved.