Class InterceptorCfg
java.lang.Object
io.camunda.zeebe.gateway.impl.configuration.InterceptorCfg
Configuration to load a single extra interceptor. The
className property is required,
and must be a fully qualified name referring to an implementation of ServerInterceptor.
Optionally, a jarPath can be supplied, and the class will be looked up there. Note
that the JAR is loaded within an isolated class loader to avoid dependency conflicts, so you must
make sure that all dependencies are available in the JAR, or via the gateway itself.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Returns a human readable identifier, mostly for debugging purposes to differentiate instances of the same interceptor, for example.Returns the path to the JAR file containing the interceptor implementation.inthashCode()booleanvoidsetClassName(String className) Sets a new class name.voidvoidsetJarPath(String jarPath) Sets the path to the interceptor JAR.toString()
-
Constructor Details
-
InterceptorCfg
public InterceptorCfg()
-
-
Method Details
-
isExternal
public boolean isExternal()- Returns:
- true if the class must be loaded from an external JAR, false otherwise
-
getId
Returns a human readable identifier, mostly for debugging purposes to differentiate instances of the same interceptor, for example. If not specified, defaults to theclassName.- Returns:
- a human readable identifier, mostly for debugging purposes
-
setId
- Parameters:
id- the interceptor's new debug identifier
-
getJarPath
Returns the path to the JAR file containing the interceptor implementation. Note that this may be null, as this field is optional. If it is null, then the implementation is looked up within the base class path.NOTE: the path may be relative or absolute. The caller must be handle both cases.
- Returns:
- a path to the JAR, or null
-
setJarPath
Sets the path to the interceptor JAR. Can be null if the interceptor implementation class can be found on the class path.- Parameters:
jarPath- the new JAR path, or null
-
getClassName
- Returns:
- the fully qualified class name of the interceptor implementation
-
setClassName
Sets a new class name. Note that this must be a fully qualified class name to avoid any collisions.- Parameters:
className- the new class name
-
hashCode
public int hashCode() -
equals
-
toString
-