public static class OddsFeedSessionBuilder.OddsFeedSessionBuilderImpl extends Object implements OddsFeedSessionBuilder, OddsFeedSessionBuilder.MessageInterestSetter, OddsFeedSessionBuilder.SessionBuilder
OddsFeedSession
instancesOddsFeedSessionBuilder.MessageInterestSetter, OddsFeedSessionBuilder.OddsFeedSessionBuilderImpl, OddsFeedSessionBuilder.SessionBuilder
Constructor and Description |
---|
OddsFeedSessionBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
<T extends SportEvent> |
addSportSpecificListener(com.sportradar.unifiedodds.sdk.GenericOddsFeedListener<T> sportSpecificListener)
Sets the sport-specific listener which will be used to notify outside world that a
message associated with that sport was received
|
OddsFeedSession |
build()
Builds and returns a
OddsFeedSession implementation |
OddsFeedListener |
getListener()
Gets the provided
OddsFeedListener instance |
MessageInterest |
getMsgInterest()
Gets the provided
MessageInterest instance |
Set<com.sportradar.unifiedodds.sdk.GenericOddsFeedListener> |
getSportSpecificListeners()
Gets the
Set containing registered sport-specific instances |
OddsFeedSessionBuilder.MessageInterestSetter |
setListener(OddsFeedListener listener)
Sets the
OddsFeedListener instance which is to be used when building the
OddsFeedSession instance |
OddsFeedSessionBuilder.SessionBuilder |
setMessageInterest(MessageInterest msgInterest)
Sets the
MessageInterest instance which is to be used when building the
OddsFeedSession instance |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, init
public OddsFeedListener getListener()
OddsFeedListener
instanceOddsFeedListener
instancepublic MessageInterest getMsgInterest()
MessageInterest
instanceMessageInterest
instancepublic Set<com.sportradar.unifiedodds.sdk.GenericOddsFeedListener> getSportSpecificListeners()
Set
containing registered sport-specific instancesSet
containing registered sport-specific instancespublic OddsFeedSessionBuilder.MessageInterestSetter setListener(OddsFeedListener listener)
OddsFeedListener
instance which is to be used when building the
OddsFeedSession
instancesetListener
in interface OddsFeedSessionBuilder
listener
- A OddsFeedListener
instance to be used when building the
OddsFeedSession
instanceOddsFeedSessionBuilder.MessageInterestSetter
used to set the MessageInterest
public OddsFeedSessionBuilder.SessionBuilder setMessageInterest(MessageInterest msgInterest)
MessageInterest
instance which is to be used when building the
OddsFeedSession
instancesetMessageInterest
in interface OddsFeedSessionBuilder.MessageInterestSetter
msgInterest
- A MessageInterest
instance to be used when building the
OddsFeedSession
instanceOddsFeedSessionBuilder.SessionBuilder
used to build a OddsFeedSession
implementationpublic <T extends SportEvent> OddsFeedSessionBuilder.SessionBuilder addSportSpecificListener(com.sportradar.unifiedodds.sdk.GenericOddsFeedListener<T> sportSpecificListener)
addSportSpecificListener
in interface OddsFeedSessionBuilder.SessionBuilder
T
- A SportEvent
derived type specifying the type of sport event this
listener can handlesportSpecificListener
- A sport-specific listenerOddsFeedSessionBuilder.SessionBuilder
used to build OddsFeedSession
instancespublic OddsFeedSession build() throws IOException
OddsFeedSession
implementationbuild
in interface OddsFeedSessionBuilder.SessionBuilder
OddsFeedSession
implementationIOException
- if some io problem occursCopyright © 2016–2017. All rights reserved.