クラス AnnotatedEndpointConnectionManager
java.lang.ObjectSE
org.springframework.web.socket.client.ConnectionManagerSupport
org.springframework.web.socket.client.standard.AnnotatedEndpointConnectionManager
- 実装されているすべてのインターフェース:
Aware
、BeanFactoryAware
、Lifecycle
、Phased
、SmartLifecycle
public class AnnotatedEndpointConnectionManager
extends ConnectionManagerSupport
implements BeanFactoryAware
- 導入:
- 4.0
- 作成者:
- Rossen Stoyanchev
フィールドのサマリー
クラス org.springframework.web.socket.client.ConnectionManagerSupport から継承されたフィールド
logger
インターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASE
コンストラクターの概要
コンストラクターコンストラクター説明AnnotatedEndpointConnectionManager
(ClassSE<?> endpointClass, StringSE uriTemplate, @Nullable ObjectSE... uriVariables) AnnotatedEndpointConnectionManager
(ObjectSE endpoint, StringSE uriTemplate, @Nullable ObjectSE... uriVariables) メソッドのサマリー
修飾子と型メソッド説明protected void
サブクラスはこれを実装して接続を閉じます。設定されたTaskExecutor
を返します。boolean
接続が開いている /true
か閉じている /false
か。protected void
サブクラスはこれを実装して、実際に接続を確立します。void
setBeanFactory
(BeanFactory beanFactory) 所有ファクトリを Bean インスタンスに提供するコールバック。void
setTaskExecutor
(TaskExecutor taskExecutor) 接続を開くために使用するTaskExecutor
を設定します。void
setWebSocketContainer
(WebSocketContainerEE webSocketContainer) クラス org.springframework.web.socket.client.ConnectionManagerSupport から継承されたメソッド
getPhase, getUri, isAutoStartup, isRunning, setAutoStartup, setPhase, start, startInternal, stop, stop, stopInternal
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
isPauseable
コンストラクターの詳細
AnnotatedEndpointConnectionManager
AnnotatedEndpointConnectionManager
メソッドの詳細
setWebSocketContainer
getWebSocketContainer
setBeanFactory
インターフェースからコピーされた説明:BeanFactoryAware
所有ファクトリを Bean インスタンスに提供するコールバック。通常の Bean プロパティの設定後、ただし
InitializingBean.afterPropertiesSet()
またはカスタム init-method などの初期化コールバックの前に呼び出されます。- 次で指定:
- インターフェース
BeanFactoryAware
のsetBeanFactory
- パラメーター:
beanFactory
- 所有 BeanFactory(非null
)。Bean は、ファクトリのメソッドをすぐに呼び出すことができます。- 例外:
BeansException
- 初期化エラーの場合- 関連事項:
setTaskExecutor
接続を開くために使用するTaskExecutor
を設定します。デフォルトではSimpleAsyncTaskExecutor
が使用されます。getTaskExecutor
設定されたTaskExecutor
を返します。isConnected
public boolean isConnected()クラスからコピーされた説明:ConnectionManagerSupport
接続が開いている /true
か閉じている /false
か。- 次で指定:
- クラス
ConnectionManagerSupport
のisConnected
openConnection
protected void openConnection()クラスからコピーされた説明:ConnectionManagerSupport
サブクラスはこれを実装して、実際に接続を確立します。- 次で指定:
- クラス
ConnectionManagerSupport
のopenConnection
closeConnection
クラスからコピーされた説明:ConnectionManagerSupport
サブクラスはこれを実装して接続を閉じます。- 次で指定:
- クラス
ConnectionManagerSupport
のcloseConnection
- 例外:
ExceptionSE