Package org.red5.server.api.service
Interface IServiceCall
- All Known Subinterfaces:
IPendingServiceCall
- All Known Implementing Classes:
Call
,PendingCall
public interface IServiceCall
Container for a Service Call
-
Method Summary
Modifier and TypeMethodDescriptionObject[]
Returns array of service method argumentsGet service call exceptionlong
Returns the time stamp at which this object was deserialized.Returns service method nameReturns service namebyte
Get service call statuslong
Returns the time stamp at which this object was serialized.boolean
Whether call was successful or notvoid
setException
(Exception exception) Sets exceptionvoid
setStatus
(byte status) Sets status
-
Method Details
-
isSuccess
boolean isSuccess()Whether call was successful or not- Returns:
true
on success,false
otherwise
-
getServiceMethodName
String getServiceMethodName()Returns service method name- Returns:
- Service method name as string
-
getServiceName
String getServiceName()Returns service name- Returns:
- Service name
-
getArguments
Object[] getArguments()Returns array of service method arguments- Returns:
- array of service method arguments
-
getStatus
byte getStatus()Get service call status- Returns:
- service call status
-
getReadTime
long getReadTime()Returns the time stamp at which this object was deserialized.- Returns:
- the readTime
-
getWriteTime
long getWriteTime()Returns the time stamp at which this object was serialized.- Returns:
- the writeTime
-
getException
Exception getException()Get service call exception- Returns:
- service call exception
-
setStatus
void setStatus(byte status) Sets status- Parameters:
status
- Status as byte
-
setException
Sets exception- Parameters:
exception
- Call exception
-