public abstract class ProxyFilter<T,E extends ProxyEntity,M extends ProxyFilterMessage,REQ> extends ManagedComponent implements ProxyConfigListener
Lifecycle.SingleUse| 限定符和类型 | 字段和说明 |
|---|---|
private ProxyConfigRepository |
proxyConfigRepository |
private E |
proxyEntity |
logAFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| 构造器和说明 |
|---|
ProxyFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract M |
doFilter(T proxyMessage,
REQ proxyRequest)
拦截逻辑。
|
ProxyConfigRepository |
getProxyConfigRepository() |
E |
getProxyEntity() |
ProxyFilter<T,E,M,REQ> |
setProxyConfigRepository(ProxyConfigRepository proxyConfigRepository) |
void |
setProxyEntity(E proxyEntity) |
void |
startingLifecycle(Lifecycle lifecycle) |
beforeStartingLifecycle, beforeStoppingLifecycle, destroy, destroyedLifecycle, destroyingLifecycle, destroyInternal, failedLifecycle, init, initializedLifecycle, initializingLifecycle, initInternal, newLifecycle, startedLifecycle, stoppedLifecycle, stoppingfecyclefailedInternal, startedInternal, startInternal, stopInternal, stoppedInternaladdLifecycleListener, destroyLifecycle, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, initLifecycle, lifecycleListeners, removeLifecycleListener, setState, setState, startLifecycle, stopLifecycle, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonChangelifecycleEventprivate ProxyConfigRepository proxyConfigRepository
private E extends ProxyEntity proxyEntity
public void startingLifecycle(Lifecycle lifecycle)
startingLifecycle 在接口中 StateLifecycleListenerstartingLifecycle 在类中 ManagedComponentpublic ProxyConfigRepository getProxyConfigRepository()
public ProxyFilter<T,E,M,REQ> setProxyConfigRepository(ProxyConfigRepository proxyConfigRepository)
public E getProxyEntity()
public void setProxyEntity(E proxyEntity)
Copyright © 2022 Zodiac. All rights reserved.