Class WriteExec<V>
- java.lang.Object
-
- com.smartgridready.communicator.async.process.Processor
-
- com.smartgridready.communicator.async.process.WriteExec<V>
-
- All Implemented Interfaces:
Executable
public class WriteExec<V> extends Processor implements Executable
-
-
Constructor Summary
Constructors Constructor Description WriteExec(java.lang.String functionalProfileName, java.lang.String dataPointName, WriteFunction<V> writeFunction)
WriteExec(java.lang.String functionalProfileName, java.lang.String dataPointName, WriteFunction<V> writeFunction, io.reactivex.rxjava3.core.Scheduler scheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
ExecStatus
getExecStatus()
java.lang.Throwable
getExecThrowable()
java.time.Instant
getRequestTime()
java.time.Instant
getResponseTime()
AsyncResult<V>
getResult()
void
process(ProcessingType processingType)
void
setFinishedNotificationReceiver(java.lang.Object notificationReceiver)
void
setWriteValue(V value)
java.lang.String
toString()
-
-
-
Constructor Detail
-
WriteExec
public WriteExec(java.lang.String functionalProfileName, java.lang.String dataPointName, WriteFunction<V> writeFunction)
-
WriteExec
public WriteExec(java.lang.String functionalProfileName, java.lang.String dataPointName, WriteFunction<V> writeFunction, io.reactivex.rxjava3.core.Scheduler scheduler)
-
-
Method Detail
-
process
public void process(ProcessingType processingType)
-
setWriteValue
public void setWriteValue(V value)
-
getResult
public AsyncResult<V> getResult()
- Specified by:
getResult
in interfaceExecutable
-
getExecStatus
public ExecStatus getExecStatus()
- Specified by:
getExecStatus
in interfaceExecutable
-
getExecThrowable
public java.lang.Throwable getExecThrowable()
-
getRequestTime
public java.time.Instant getRequestTime()
-
getResponseTime
public java.time.Instant getResponseTime()
-
cleanup
public void cleanup()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setFinishedNotificationReceiver
public void setFinishedNotificationReceiver(java.lang.Object notificationReceiver)
- Specified by:
setFinishedNotificationReceiver
in interfaceExecutable
-
-