Package markets.alpaca.client.broker.sse
Record Class BrokerSseRebalancerOptions
java.lang.Object
java.lang.Record
markets.alpaca.client.broker.sse.BrokerSseRebalancerOptions
public record BrokerSseRebalancerOptions(OffsetDateTime since, OffsetDateTime until, String sinceId, String untilId, String lastEventId)
extends Record
Optional filters for the Broker rebalancer SSE stream.
lastEventId is sent as the Last-Event-Id header. The Broker API uses that
header as since_id and rejects it together with since.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBrokerSseRebalancerOptions(OffsetDateTime since, OffsetDateTime until, String sinceId, String untilId, String lastEventId) Creates an instance of aBrokerSseRebalancerOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static BrokerSseRebalancerOptionsempty()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastEventIdrecord component.since()Returns the value of thesincerecord component.sinceId()Returns the value of thesinceIdrecord component.final StringtoString()Returns a string representation of this record class.until()Returns the value of theuntilrecord component.untilId()Returns the value of theuntilIdrecord component.
-
Constructor Details
-
BrokerSseRebalancerOptions
public BrokerSseRebalancerOptions(OffsetDateTime since, OffsetDateTime until, String sinceId, String untilId, String lastEventId) Creates an instance of aBrokerSseRebalancerOptionsrecord class.- Parameters:
since- the value for thesincerecord componentuntil- the value for theuntilrecord componentsinceId- the value for thesinceIdrecord componentuntilId- the value for theuntilIdrecord componentlastEventId- the value for thelastEventIdrecord component
-
-
Method Details
-
empty
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
since
Returns the value of thesincerecord component.- Returns:
- the value of the
sincerecord component
-
until
Returns the value of theuntilrecord component.- Returns:
- the value of the
untilrecord component
-
sinceId
Returns the value of thesinceIdrecord component.- Returns:
- the value of the
sinceIdrecord component
-
untilId
Returns the value of theuntilIdrecord component.- Returns:
- the value of the
untilIdrecord component
-
lastEventId
Returns the value of thelastEventIdrecord component.- Returns:
- the value of the
lastEventIdrecord component
-