Skip to content

Commit 0ffcece

Browse files
committed
Documentation and examples
1 parent 7307c8f commit 0ffcece

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/main/java/com/github/pgasync/impl/io/StartupEncoder.java renamed to src/main/java/com/github/pgasync/impl/io/StartupMessageEncoder.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@
2020

2121
import com.github.pgasync.impl.message.Startup;
2222

23-
public class StartupEncoder implements Encoder<Startup> {
23+
/**
24+
* See <a href="www.postgresql.org/docs/9.3/static/protocol-message-formats.html">PostgreSQL message formats</a>
25+
*
26+
* <pre>
27+
*</pre>
28+
*
29+
* @author Antti Laisi
30+
*/
31+
public class StartupMessageEncoder implements Encoder<Startup> {
2432

2533
@Override
2634
public Class<Startup> getMessageType() {

src/main/java/com/github/pgasync/impl/message/Startup.java renamed to src/main/java/com/github/pgasync/impl/message/StartupMessage.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414

1515
package com.github.pgasync.impl.message;
1616

17-
public class Startup implements Message {
17+
/**
18+
* @author Antti Laisi
19+
*/
20+
public class StartupMessage implements Message {
1821

1922
final int protocol = 196608;
2023
final String username;
2124
final String database;
2225

23-
public Startup(String username, String database) {
26+
public StartupMessage(String username, String database) {
2427
this.username = username;
2528
this.database = database;
2629
}

0 commit comments

Comments
 (0)