public abstract class SessionServiceFactory
extends java.lang.Object
implements java.io.Serializable
For basic authentication, use BasicAuthJcsmpSessionServiceFactory.
For other situations, you need to extend this class. Classes extending from this abstract class must implement the `equals` method so two instances can be compared by value, and not by reference. We recommend using AutoValue for that.
{@literal @}AutoValue
public abstract class MyFactory implements SessionServiceClientFactory {
abstract String value1();
abstract String value2();
public static MyFactory create(String value1, String value2) {
return new AutoValue_MyFactory.Builder(value1, value2);
}
...
{@literal @}Override
public SessionService create() {
...
}
}
| Constructor and Description |
|---|
SessionServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract SessionService |
create()
This is the core method that subclasses must implement.
|
abstract boolean |
equals(@Nullable java.lang.Object other)
You need to override this method to be able to compare these objects by value.
|
@Nullable SolaceIO.SubmissionMode |
getSubmissionMode() |
abstract int |
hashCode()
You need to override this method to be able to compare these objects by value.
|
void |
setQueue(Queue queue)
This method is called in the
SolaceIO.Read.expand(org.apache.beam.sdk.values.PBegin) method
to set the Queue reference. |
void |
setSubmissionMode(SolaceIO.SubmissionMode submissionMode)
Called by the write connector to set the submission mode used to create the message producers.
|
public abstract SessionService create()
public abstract boolean equals(@Nullable java.lang.Object other)
equals in class java.lang.Objectpublic abstract int hashCode()
hashCode in class java.lang.Objectpublic void setQueue(Queue queue)
SolaceIO.Read.expand(org.apache.beam.sdk.values.PBegin) method
to set the Queue reference.public void setSubmissionMode(SolaceIO.SubmissionMode submissionMode)
public @Nullable SolaceIO.SubmissionMode getSubmissionMode()