forked from ltsopensource/light-task-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e04f324
commit a83e6b1
Showing
44 changed files
with
1,280 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,34 @@ | ||
package com.lts.nio; | ||
|
||
import com.lts.nio.codec.Decoder; | ||
import com.lts.nio.codec.Encoder; | ||
import com.lts.nio.config.NioClientConfig; | ||
import com.lts.nio.handler.Futures; | ||
import com.lts.nio.handler.NioHandler; | ||
import com.lts.nio.processor.NioClientProcessor; | ||
|
||
import java.net.SocketAddress; | ||
|
||
/** | ||
* @author Robert HG ([email protected]) on 1/30/16. | ||
*/ | ||
public class NioClient { | ||
|
||
private NioClientProcessor processor; | ||
|
||
public NioClient(NioClientConfig clientConfig, NioHandler eventHandler, Encoder encoder, Decoder decoder) { | ||
this.processor = new NioClientProcessor(clientConfig, eventHandler, encoder, decoder); | ||
} | ||
|
||
|
||
public Futures.ConnectFuture connect(SocketAddress remoteAddress) { | ||
|
||
processor.start(); | ||
|
||
return processor.connect(remoteAddress); | ||
} | ||
|
||
public void shutdownGracefully() { | ||
// TODO | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 0 additions & 70 deletions
70
lts-core/src/main/java/com/lts/nio/channel/AbstractNioChannel.java
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
lts-core/src/main/java/com/lts/nio/channel/ChannelContainer.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 0 additions & 61 deletions
61
lts-core/src/main/java/com/lts/nio/channel/NioServerChannel.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.