Class BrokerInterceptor.BrokerInterceptorDisabled
- java.lang.Object
-
- org.apache.pulsar.broker.intercept.BrokerInterceptor.BrokerInterceptorDisabled
-
- All Implemented Interfaces:
java.lang.AutoCloseable,BrokerInterceptor
- Enclosing interface:
- BrokerInterceptor
public static class BrokerInterceptor.BrokerInterceptorDisabled extends java.lang.Object implements BrokerInterceptor
Broker interceptor disabled implementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pulsar.broker.intercept.BrokerInterceptor
BrokerInterceptor.BrokerInterceptorDisabled
-
-
Field Summary
-
Fields inherited from interface org.apache.pulsar.broker.intercept.BrokerInterceptor
DISABLED
-
-
Constructor Summary
Constructors Constructor Description BrokerInterceptorDisabled()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close this broker interceptor.voidinitialize(PulsarService pulsarService)Initialize the broker interceptor.voidonConnectionClosed(ServerCnx cnx)Called by the broker while connection closed.voidonPulsarCommand(org.apache.pulsar.common.api.proto.BaseCommand command, ServerCnx cnx)Called by the broker while new command incoming.voidonWebserviceRequest(javax.servlet.ServletRequest request)Called by the web service while new request incoming.voidonWebserviceResponse(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)Intercept the webservice response before send to client.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pulsar.broker.intercept.BrokerInterceptor
beforeSendMessage, consumerCreated, messageAcked, messageDispatched, messageProduced, onConnectionCreated, onFilter, producerCreated
-
-
-
-
Method Detail
-
onPulsarCommand
public void onPulsarCommand(org.apache.pulsar.common.api.proto.BaseCommand command, ServerCnx cnx) throws org.apache.pulsar.common.intercept.InterceptExceptionDescription copied from interface:BrokerInterceptorCalled by the broker while new command incoming.- Specified by:
onPulsarCommandin interfaceBrokerInterceptor- Throws:
org.apache.pulsar.common.intercept.InterceptException
-
onConnectionClosed
public void onConnectionClosed(ServerCnx cnx)
Description copied from interface:BrokerInterceptorCalled by the broker while connection closed.- Specified by:
onConnectionClosedin interfaceBrokerInterceptor
-
onWebserviceRequest
public void onWebserviceRequest(javax.servlet.ServletRequest request)
Description copied from interface:BrokerInterceptorCalled by the web service while new request incoming.- Specified by:
onWebserviceRequestin interfaceBrokerInterceptor
-
onWebserviceResponse
public void onWebserviceResponse(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)Description copied from interface:BrokerInterceptorIntercept the webservice response before send to client.- Specified by:
onWebserviceResponsein interfaceBrokerInterceptor
-
initialize
public void initialize(PulsarService pulsarService) throws java.lang.Exception
Description copied from interface:BrokerInterceptorInitialize the broker interceptor.- Specified by:
initializein interfaceBrokerInterceptor- Throws:
java.lang.Exception- when fail to initialize the broker interceptor.
-
close
public void close()
Description copied from interface:BrokerInterceptorClose this broker interceptor.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceBrokerInterceptor
-
-