Class StartupMessage
java.lang.Object
io.r2dbc.postgresql.message.frontend.StartupMessage
- All Implemented Interfaces:
FrontendMessage
The StartupMessage message.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceWriter interface to expose startup parameters.static interfaceInterface that provides startup parameters into aStartupMessage.ParameterWriter.Nested classes/interfaces inherited from interface FrontendMessage
FrontendMessage.DirectEncoder -
Constructor Summary
ConstructorsConstructorDescriptionStartupMessage(@Nullable String database, String username, StartupMessage.StartupParameterProvider parameterProvider) Create a new message. -
Method Summary
-
Constructor Details
-
StartupMessage
public StartupMessage(@Nullable String database, String username, StartupMessage.StartupParameterProvider parameterProvider) Create a new message.- Parameters:
database- the database to connect to. Defaults to the username.username- the database username to connect asparameterProvider- the provider providing database connection options- Throws:
IllegalArgumentException- ifapplicationNameorusernameisnull
-
-
Method Details
-
encode
Description copied from interface:FrontendMessageEncode a message into aByteBuf.- Specified by:
encodein interfaceFrontendMessage- Parameters:
byteBufAllocator- the byteBufAllocator to use to get aByteBufto write into- Returns:
- a
Publisherthat produces theByteBufcontaining the encoded message
-
equals
-
hashCode
-
toString
-