Class ServerUDTInputStream
java.lang.Object
de.aristaflow.adept2.model.common.communication.ServerInputStream
de.aristaflow.adept2.model.datamanagement.ServerUDTInputStream
- All Implemented Interfaces:
ServerStream,de.aristaflow.adept2.model.communication.ServerSideProxy,de.aristaflow.adept2.model.communication.TimeTrackingSsProxy,Closeable,AutoCloseable
This interface resembles a
UDTValue but does not provide all
data at once but as requested, that is, the value of this UDTValue will not
be provided as a whole but incrementally as requested. This significantly
improves memory usage.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.aristaflow.adept2.model.communication.ServerSideProxy
de.aristaflow.adept2.model.communication.ServerSideProxy.LegacySspCloser, de.aristaflow.adept2.model.communication.ServerSideProxy.ServerSideProxyRemover -
Field Summary
FieldsFields inherited from class de.aristaflow.adept2.model.common.communication.ServerInputStream
aliveTimeExtension, busyThreads, cleanupFields inherited from interface de.aristaflow.adept2.model.communication.ServerSideProxy
DEFAULT_ALIVE_TIMEFields inherited from interface de.aristaflow.adept2.model.communication.TimeTrackingSsProxy
DEFAULT_CLOSE_DEFER_TIME, MAX_ALIVE_TIME_EXTENSION -
Constructor Summary
ConstructorsConstructorDescriptionServerUDTInputStream(UDTValue value) Deprecated, for removal: This API element is subject to removal in a future version.ServerUDTInputStream(UDTValue value, long initialAliveTime, long aliveTimeExtension) Creates a newServerInputStreamfor the designatedUDTValue.ServerUDTInputStream(InputStream in, String userDefinedType) Deprecated, for removal: This API element is subject to removal in a future version.ServerUDTInputStream(InputStream in, String userDefinedType, long initialAliveTime, long aliveTimeExtension) Creates a new UDTValue asServerInputStreamthat is all data will be transfered as requested. -
Method Summary
Modifier and TypeMethodDescriptionGets the name (a string) of the user-defined type of this value.Methods inherited from class de.aristaflow.adept2.model.common.communication.ServerInputStream
available, close, getCloseTime, isBusy, mark, markSupported, read, read, reset, setCloseTime, skipMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.aristaflow.adept2.model.communication.TimeTrackingSsProxy
enter, exit, getRemainingAliveTime, keepAlive
-
Field Details
-
userDefinedTypeName
The name of the user-defined type.
-
-
Constructor Details
-
ServerUDTInputStream
@Deprecated(since="15.0.0", forRemoval=true) public ServerUDTInputStream(InputStream in, String userDefinedType) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new UDTValue asServerInputStreamthat is all data will be transfered as requested.- Parameters:
in- The input stream providing the value for this UDTValue.userDefinedType- The name of the user-defined type of the value. the name of the user defined type
-
ServerUDTInputStream
public ServerUDTInputStream(InputStream in, String userDefinedType, long initialAliveTime, long aliveTimeExtension) Creates a new UDTValue asServerInputStreamthat is all data will be transfered as requested.- Parameters:
in- The input stream providing the value for this UDTValue. The InputStream will be coupled to thisServerUDTInputStream, so do not close it; clone it if required longer than thisServerUDTInputStream.userDefinedType- The name of the user-defined type of the value. the name of the user defined typeinitialAliveTime- The initial time in milliseconds this server stream remains open before automatically being closed.aliveTimeExtension- The time in milliseconds to extend the alive time when accessing this server stream.
-
ServerUDTInputStream
Deprecated, for removal: This API element is subject to removal in a future version.UseServerUDTInputStream(UDTValue, long, long)instead.Creates a newServerInputStreamfor the designatedUDTValue.- Parameters:
value- TheUDTValueproviding the necessary information for theServerUDTInputStreamto create.
-
ServerUDTInputStream
public ServerUDTInputStream(UDTValue value, long initialAliveTime, long aliveTimeExtension) throws IOException Creates a newServerInputStreamfor the designatedUDTValue.- Parameters:
value- TheUDTValueproviding the necessary information for theServerUDTInputStreamto create. closing will not affect theServerUDTInputStream.initialAliveTime- The initial time in milliseconds this server stream remains open before automatically being closed.aliveTimeExtension- The time in milliseconds to extend the alive time when accessing this server stream.- Throws:
IOException- If there are problems retrieving the input stream from the designatedUDTValue, anIOExceptionwill be thrown.
-
-
Method Details
-
getUserDefinedType
Gets the name (a string) of the user-defined type of this value.- Returns:
- The name of the user-defined data type of this value.
-
ServerUDTInputStream(UDTValue, long, long)instead.