|
DataSubscriberUnsynchronizedSubscribe(Boolean, Boolean, String, String, Boolean, Double, Double, Boolean, String, String, String, Int32, String, Int32) Method
|
Note: This API is now obsolete.
Subscribes (or re-subscribes) to a data publisher for an unsynchronized set of data points.
Namespace: GSF.TimeSeries.TransportAssembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.207-beta
Syntax [ObsoleteAttribute("Preferred method uses SubscriptionInfo object to subscribe.",
false)]
public virtual bool UnsynchronizedSubscribe(
bool compactFormat,
bool throttled,
string filterExpression,
string dataChannel = null,
bool includeTime = true,
double lagTime = 10,
double leadTime = 5,
bool useLocalClockAsRealTime = false,
string startTime = null,
string stopTime = null,
string constraintParameters = null,
int processingInterval = -1,
string waitHandleNames = null,
int waitHandleTimeout = 0
)
<ObsoleteAttribute("Preferred method uses SubscriptionInfo object to subscribe.",
false)>
Public Overridable Function UnsynchronizedSubscribe (
compactFormat As Boolean,
throttled As Boolean,
filterExpression As String,
Optional dataChannel As String = Nothing,
Optional includeTime As Boolean = true,
Optional lagTime As Double = 10,
Optional leadTime As Double = 5,
Optional useLocalClockAsRealTime As Boolean = false,
Optional startTime As String = Nothing,
Optional stopTime As String = Nothing,
Optional constraintParameters As String = Nothing,
Optional processingInterval As Integer = -1,
Optional waitHandleNames As String = Nothing,
Optional waitHandleTimeout As Integer = 0
) As Boolean
public:
[ObsoleteAttribute(L"Preferred method uses SubscriptionInfo object to subscribe.",
false)]
virtual bool UnsynchronizedSubscribe(
bool compactFormat,
bool throttled,
String^ filterExpression,
String^ dataChannel = nullptr,
bool includeTime = true,
double lagTime = 10,
double leadTime = 5,
bool useLocalClockAsRealTime = false,
String^ startTime = nullptr,
String^ stopTime = nullptr,
String^ constraintParameters = nullptr,
int processingInterval = -1,
String^ waitHandleNames = nullptr,
int waitHandleTimeout = 0
)
[<ObsoleteAttribute("Preferred method uses SubscriptionInfo object to subscribe.",
false)>]
abstract UnsynchronizedSubscribe :
compactFormat : bool *
throttled : bool *
filterExpression : string *
?dataChannel : string *
?includeTime : bool *
?lagTime : float *
?leadTime : float *
?useLocalClockAsRealTime : bool *
?startTime : string *
?stopTime : string *
?constraintParameters : string *
?processingInterval : int *
?waitHandleNames : string *
?waitHandleTimeout : int
(* Defaults:
let _dataChannel = defaultArg dataChannel null
let _includeTime = defaultArg includeTime true
let _lagTime = defaultArg lagTime 10
let _leadTime = defaultArg leadTime 5
let _useLocalClockAsRealTime = defaultArg useLocalClockAsRealTime false
let _startTime = defaultArg startTime null
let _stopTime = defaultArg stopTime null
let _constraintParameters = defaultArg constraintParameters null
let _processingInterval = defaultArg processingInterval -1
let _waitHandleNames = defaultArg waitHandleNames null
let _waitHandleTimeout = defaultArg waitHandleTimeout 0
*)
-> bool
[<ObsoleteAttribute("Preferred method uses SubscriptionInfo object to subscribe.",
false)>]
override UnsynchronizedSubscribe :
compactFormat : bool *
throttled : bool *
filterExpression : string *
?dataChannel : string *
?includeTime : bool *
?lagTime : float *
?leadTime : float *
?useLocalClockAsRealTime : bool *
?startTime : string *
?stopTime : string *
?constraintParameters : string *
?processingInterval : int *
?waitHandleNames : string *
?waitHandleTimeout : int
(* Defaults:
let _dataChannel = defaultArg dataChannel null
let _includeTime = defaultArg includeTime true
let _lagTime = defaultArg lagTime 10
let _leadTime = defaultArg leadTime 5
let _useLocalClockAsRealTime = defaultArg useLocalClockAsRealTime false
let _startTime = defaultArg startTime null
let _stopTime = defaultArg stopTime null
let _constraintParameters = defaultArg constraintParameters null
let _processingInterval = defaultArg processingInterval -1
let _waitHandleNames = defaultArg waitHandleNames null
let _waitHandleTimeout = defaultArg waitHandleTimeout 0
*)
-> bool
function UnsynchronizedSubscribe(compactFormat, throttled, filterExpression, dataChannel, includeTime, lagTime, leadTime, useLocalClockAsRealTime, startTime, stopTime, constraintParameters, processingInterval, waitHandleNames, waitHandleTimeout);
View SourceParameters
- compactFormat Boolean
- Boolean value that determines if the compact measurement format should be used. Set to false for full fidelity measurement serialization; otherwise set to true for bandwidth conservation.
- throttled Boolean
- Boolean value that determines if data should be throttled at a set transmission interval or sent on change.
- filterExpression String
- Filtering expression that defines the measurements that are being subscribed.
- dataChannel String (Optional)
- Desired UDP return data channel connection string to use for data packet transmission. Set to null to use TCP channel for data transmission.
- includeTime Boolean (Optional)
- Boolean value that determines if time is a necessary component in streaming data.
- lagTime Double (Optional)
- When throttled is true, defines the data transmission speed in seconds (can be sub-second).
- leadTime Double (Optional)
- When throttled is true, defines the allowed time deviation tolerance to real-time in seconds (can be sub-second).
- useLocalClockAsRealTime Boolean (Optional)
- When throttled is true, defines boolean value that determines whether or not to use the local clock time as real-time. Set to false to use latest received measurement timestamp as real-time.
- startTime String (Optional)
- Defines a relative or exact start time for the temporal constraint to use for historical playback.
- stopTime String (Optional)
- Defines a relative or exact stop time for the temporal constraint to use for historical playback.
- constraintParameters String (Optional)
- Defines any temporal parameters related to the constraint to use for historical playback.
- processingInterval Int32 (Optional)
- Defines the desired processing interval milliseconds, i.e., historical play back speed, to use when temporal constraints are defined.
- waitHandleNames String (Optional)
- Comma separated list of wait handle names used to establish external event wait handles needed for inter-adapter synchronization.
- waitHandleTimeout Int32 (Optional)
- Maximum wait time for external events, in milliseconds, before proceeding.
Return Value
Booleantrue if subscribe transmission was successful; otherwise
false.
Remarks
When the startTime or stopTime temporal processing constraints are defined (i.e., not null), this
specifies the start and stop time over which the subscriber session will process data. Passing in null for the startTime
and stopTime specifies the subscriber session will process data in standard, i.e., real-time, operation.
With the exception of the values of -1 and 0, the processingInterval value specifies the desired historical playback data
processing interval in milliseconds. This is basically a delay, or timer interval, over which to process data. Setting this value to -1 means
to use the default processing interval while setting the value to 0 means to process data as fast as possible.
The startTime and stopTime parameters can be specified in one of the
following formats:
Time Format | Format Description |
---|
12-30-2000 23:59:59.033 | Absolute date and time. |
* | Evaluates to UtcNow. |
*-20s | Evaluates to 20 seconds before UtcNow. |
*-10m | Evaluates to 10 minutes before UtcNow. |
*-1h | Evaluates to 1 hour before UtcNow. |
*-1d | Evaluates to 1 day before UtcNow. |
See Also