Skip to content

Commit

Permalink
#28 fix javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
kpavlov committed Jan 21, 2017
1 parent 36ea603 commit 8265e87
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions core/src/main/java/fixio/handlers/FixApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,34 @@ public interface FixApplication extends ChannelHandler {

/**
* Invoked after FIX session was successfully established.
*
* @param ctx current {@link ChannelHandlerContext}
* @param msg {@link LogonEvent} message to handle
*/
void onLogon(ChannelHandlerContext ctx, LogonEvent msg);

/**
* Invoked after FIX session was closed.
*
* @param ctx current {@link ChannelHandlerContext}
* @param msg {@link LogonEvent} message to handle
*/
void onLogout(ChannelHandlerContext ctx, LogoutEvent msg);

/**
* Invoked when message arrived
*
* @param ctx current {@link ChannelHandlerContext}
* @param msg a {@link FixMessage} to handle
* @param out a {@link List} where decoded messages should be added
*
*/
void onMessage(ChannelHandlerContext ctx, FixMessage msg, List<Object> out) throws Exception;

/**
* Invoked before {@link FixMessageBuilder} is sent.
*
* @param ctx current {@link ChannelHandlerContext}
*/
void beforeSendMessage(ChannelHandlerContext ctx, FixMessageBuilder messageBuilder) throws Exception;
}
2 changes: 2 additions & 0 deletions core/src/main/java/fixio/handlers/FixMessageHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public interface FixMessageHandler {
/**
* Performs some processing on incoming {@link FixMessage}.
*
* @param ctx current ChannelHandlerContext
* @param msg a FixMessage to handle
* @return true if message should be handled by following {@link FixMessageHandler} in a chain.
*/
boolean handle(ChannelHandlerContext ctx, FixMessage msg);
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/java/fixio/FixConversationIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void onMessage(ChannelHandlerContext ctx, FixMessage msg, List<Object> ou
private class ClientApp extends FixApplicationAdapter {

@Override
public void onMessage(ChannelHandlerContext ctx, FixMessage msg, List<Object> out) throws Exception {
public void onMessage(ChannelHandlerContext ctx, FixMessage msg, List<Object> out) throws InterruptedException {
if ("BF".equals(msg.getMessageType())) {
conversation.add(msg);
client.disconnect();
Expand Down

0 comments on commit 8265e87

Please sign in to comment.