Package com.scytales.mvalid.sdk.session
Interface SessionData
-
- All Implemented Interfaces:
public interface SessionData
The interface Session data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
SessionData.Status
The enum Status.
-
Method Summary
-
-
Method Detail
-
isTerminated
abstract boolean isTerminated()
Is terminated boolean.
-
hasError
abstract boolean hasError()
Has error boolean.
-
getStatus
@Nullable() abstract SessionData.Status getStatus()
Gets status.
-
runOnData
SessionData runOnData(@NonNull() Consumer<Array<byte>> consumer)
Run on data.
- Parameters:
consumer
- the consumer
-
runOnTermination
SessionData runOnTermination(@NonNull() Runnable runnable)
Run on termination.
- Parameters:
runnable
- the runnable
-
runOnError
SessionData runOnError(@NonNull() Consumer<SessionData.Status> consumer)
Run on error.
- Parameters:
consumer
- the consumer
-
runOnDataCatching
SessionData runOnDataCatching(@NonNull() Functions.FailableConsumer<Array<byte>, Exception> consumer)
Run catching on data.
- Parameters:
consumer
- the consumer
-
runOnTerminationCatching
SessionData runOnTerminationCatching(@NonNull() Functions.FailableRunnable<Exception> runnable)
Run catching on termination.
- Parameters:
runnable
- the runnable
-
runOnErrorCatching
SessionData runOnErrorCatching(@NonNull() Functions.FailableConsumer<SessionData.Status, Exception> consumer)
Run catching on error.
- Parameters:
consumer
- the consumer
-
runCatchingOnError
SessionData runCatchingOnError(@NonNull() Functions.FailableConsumer<SessionData.Status, Exception> consumer)
Run catching on error.
- Parameters:
consumer
- the consumer
-
-
-
-