Class MethodInvocationStream
java.lang.Object
com.espertech.esper.common.client.soda.Stream
com.espertech.esper.common.client.soda.MethodInvocationStream
- All Implemented Interfaces:
Serializable
An stream that polls from a method.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.MethodInvocationStream
(String className, String methodName, String optStreamName) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionaddParameter
(Expression parameterExpression) Adds a parameters to the method invocation.static MethodInvocationStream
Creates a new method-invocation-based stream without parameters.static MethodInvocationStream
Creates a new method-invocation-based stream without parameters.Returns the name of the class providing the method.Returns the name of the static method to invoke in the from-clause.Returns the optional event type nameReturns a list of expressions that are parameters to the method.void
setClassName
(String className) Sets the name of the class providing the method.void
setMethodName
(String methodName) Sets the name of the static method to invoke in the from-clause.void
setOptionalEventTypeName
(String optionalEventTypeName) Sets the optional event type namevoid
setParameterExpressions
(List<Expression> parameterExpressions) Sets a list of expressions that are parameters to the method.void
toEPLStream
(StringWriter writer, EPStatementFormatter formatter) Renders the stream in textual representation.void
toEPLStreamOptions
(StringWriter writer) Renders the stream in textual representation any stream options, if present.void
toEPLStreamType
(StringWriter writer) Renders the stream type under a non-complete textual representation for tool useMethods inherited from class com.espertech.esper.common.client.soda.Stream
getStreamName, setStreamName, toEPL
-
Constructor Details
-
MethodInvocationStream
public MethodInvocationStream()Ctor. -
MethodInvocationStream
Ctor.- Parameters:
className
- is the name of the class providing the methodmethodName
- is the name of the public static methodoptStreamName
- is the optional as-name of the stream, or null if unnamed
-
-
Method Details
-
create
Creates a new method-invocation-based stream without parameters.- Parameters:
className
- is the name of the class providing the methodmethodName
- is the name of the public static method- Returns:
- stream
-
create
public static MethodInvocationStream create(String className, String methodName, String optStreamName) Creates a new method-invocation-based stream without parameters.- Parameters:
className
- is the name of the class providing the methodmethodName
- is the name of the public static methodoptStreamName
- is the optional as-name of the stream, or null if unnamed- Returns:
- stream
-
getClassName
Returns the name of the class providing the method.- Returns:
- class name
-
setClassName
Sets the name of the class providing the method.- Parameters:
className
- class name
-
getMethodName
Returns the name of the static method to invoke in the from-clause.- Returns:
- method name
-
setMethodName
Sets the name of the static method to invoke in the from-clause.- Parameters:
methodName
- method name
-
getParameterExpressions
Returns a list of expressions that are parameters to the method.- Returns:
- list of parameter expressions
-
setParameterExpressions
Sets a list of expressions that are parameters to the method.- Parameters:
parameterExpressions
- list of parameter expressions
-
getOptionalEventTypeName
Returns the optional event type name- Returns:
- event type name name
-
setOptionalEventTypeName
Sets the optional event type name- Parameters:
optionalEventTypeName
- event type name name
-
addParameter
Adds a parameters to the method invocation.- Parameters:
parameterExpression
- is the expression to add- Returns:
- stream
-
toEPLStream
Description copied from class:Stream
Renders the stream in textual representation.- Specified by:
toEPLStream
in classStream
- Parameters:
writer
- to output toformatter
- for newline-whitespace formatting
-
toEPLStreamType
Description copied from class:Stream
Renders the stream type under a non-complete textual representation for tool use- Specified by:
toEPLStreamType
in classStream
- Parameters:
writer
- to output to
-
toEPLStreamOptions
Description copied from class:Stream
Renders the stream in textual representation any stream options, if present.- Specified by:
toEPLStreamOptions
in classStream
- Parameters:
writer
- to output to
-