| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,8 +4,8 @@ | |||
| 4 | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| 5 | 5 | <modelVersion>4.0.0</modelVersion> | |
| 6 | 6 | ||
| 7 | - <groupId>io.nsq</groupId> | ||
| 8 | - <artifactId>client</artifactId> | ||
| 7 | + <groupId>com.github.brainlag.nsq</groupId> | ||
| 8 | + <artifactId>nsq-client</artifactId> | ||
| 9 | 9 | <version>1.0.0-SNAPSHOT</version> | |
| 10 | 10 | ||
| 11 | 11 | <name>JavaNSQClient</name> | |
@@ -21,8 +21,6 @@ | |||
| 21 | 21 | <developer> | |
| 22 | 22 | <name>Peter Nimmervoll</name> | |
| 23 | 23 | <email>nimmervoll.peter@gmail.com</email> | |
| 24 | - <organization>nsq</organization> | ||
| 25 | - <organizationUrl>nsq.io</organizationUrl> | ||
| 26 | 24 | </developer> | |
| 27 | 25 | </developers> | |
| 28 | 26 | <scm> | |
@@ -95,6 +93,17 @@ | |||
| 95 | 93 | </profile> | |
| 96 | 94 | </profiles> | |
| 97 | 95 | ||
| 96 | + <distributionManagement> | ||
| 97 | + <snapshotRepository> | ||
| 98 | + <id>ossrh</id> | ||
| 99 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
| 100 | + </snapshotRepository> | ||
| 101 | + <repository> | ||
| 102 | + <id>ossrh</id> | ||
| 103 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
| 104 | + </repository> | ||
| 105 | + </distributionManagement> | ||
| 106 | + | ||
| 98 | 107 | <dependencies> | |
| 99 | 108 | <dependency> | |
| 100 | 109 | <groupId>org.apache.logging.log4j</groupId> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,14 @@ | |||
| 1 | - package io.nsq; | ||
| 2 | - | ||
| 1 | + package com.github.brainlag.nsq; | ||
| 2 | + | ||
| 3 | + import com.github.brainlag.nsq.callbacks.NSQErrorCallback; | ||
| 4 | + import com.github.brainlag.nsq.callbacks.NSQMessageCallback; | ||
| 5 | + import com.github.brainlag.nsq.exceptions.NSQException; | ||
| 6 | + import com.github.brainlag.nsq.exceptions.NoConnectionsException; | ||
| 7 | + import com.github.brainlag.nsq.frames.ErrorFrame; | ||
| 8 | + import com.github.brainlag.nsq.frames.MessageFrame; | ||
| 9 | + import com.github.brainlag.nsq.frames.NSQFrame; | ||
| 10 | + import com.github.brainlag.nsq.frames.ResponseFrame; | ||
| 11 | + import com.github.brainlag.nsq.netty.NSQClientInitializer; | ||
| 3 | 12 | import io.netty.bootstrap.Bootstrap; | |
| 4 | 13 | import io.netty.buffer.ByteBuf; | |
| 5 | 14 | import io.netty.buffer.Unpooled; | |
@@ -9,15 +18,6 @@ | |||
| 9 | 18 | import io.netty.channel.nio.NioEventLoopGroup; | |
| 10 | 19 | import io.netty.channel.socket.nio.NioSocketChannel; | |
| 11 | 20 | import io.netty.util.AttributeKey; | |
| 12 | - import io.nsq.callbacks.NSQErrorCallback; | ||
| 13 | - import io.nsq.callbacks.NSQMessageCallback; | ||
| 14 | - import io.nsq.exceptions.NSQException; | ||
| 15 | - import io.nsq.exceptions.NoConnectionsException; | ||
| 16 | - import io.nsq.frames.ErrorFrame; | ||
| 17 | - import io.nsq.frames.MessageFrame; | ||
| 18 | - import io.nsq.frames.NSQFrame; | ||
| 19 | - import io.nsq.frames.ResponseFrame; | ||
| 20 | - import io.nsq.netty.NSQClientInitializer; | ||
| 21 | 21 | import org.apache.logging.log4j.LogManager; | |
| 22 | 22 | ||
| 23 | 23 | import java.net.InetSocketAddress; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - package io.nsq; | ||
| 1 | + package com.github.brainlag.nsq; | ||
| 2 | 2 | ||
| 3 | 3 | import java.util.ArrayList; | |
| 4 | 4 | import java.util.List; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - package io.nsq; | ||
| 1 | + package com.github.brainlag.nsq; | ||
| 2 | 2 | ||
| 3 | 3 | import org.apache.logging.log4j.LogManager; | |
| 4 | 4 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,16 +1,15 @@ | |||
| 1 | - package io.nsq; | ||
| 2 | - | ||
| 1 | + package com.github.brainlag.nsq; | ||
| 2 | + | ||
| 3 | + import com.github.brainlag.nsq.callbacks.NSQErrorCallback; | ||
| 4 | + import com.github.brainlag.nsq.callbacks.NSQMessageCallback; | ||
| 5 | + import com.github.brainlag.nsq.exceptions.NoConnectionsException; | ||
| 6 | + import com.github.brainlag.nsq.frames.ErrorFrame; | ||
| 7 | + import com.github.brainlag.nsq.frames.NSQFrame; | ||
| 8 | + import com.github.brainlag.nsq.lookup.NSQLookup; | ||
| 3 | 9 | import com.google.common.base.Throwables; | |
| 4 | 10 | import com.google.common.collect.Maps; | |
| 5 | 11 | import io.netty.bootstrap.Bootstrap; | |
| 6 | - import io.nsq.callbacks.NSQErrorCallback; | ||
| 7 | - import io.nsq.callbacks.NSQMessageCallback; | ||
| 8 | - import io.nsq.exceptions.NoConnectionsException; | ||
| 9 | - import io.nsq.frames.ErrorFrame; | ||
| 10 | - import io.nsq.frames.NSQFrame; | ||
| 11 | - import io.nsq.lookup.NSQLookup; | ||
| 12 | 12 | import org.apache.logging.log4j.LogManager; | |
| 13 | - import sun.plugin.dom.exception.InvalidStateException; | ||
| 14 | 13 | ||
| 15 | 14 | import java.io.IOException; | |
| 16 | 15 | import java.util.*; | |
@@ -101,7 +100,7 @@ private void cleanClose() { | |||
| 101 | 100 | if (frame instanceof ErrorFrame) { | |
| 102 | 101 | String err = ((ErrorFrame) frame).getErrorMessage(); | |
| 103 | 102 | if (err.startsWith("E_INVALID")) { | |
| 104 | - throw new InvalidStateException(err); | ||
| 103 | + throw new IllegalStateException(err); | ||
| 105 | 104 | } | |
| 106 | 105 | } | |
| 107 | 106 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - package io.nsq; | ||
| 1 | + package com.github.brainlag.nsq; | ||
| 2 | 2 | ||
| 3 | 3 | import org.apache.logging.log4j.LogManager; | |
| 4 | 4 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,13 +1,13 @@ | |||
| 1 | - package io.nsq; | ||
| 2 | - | ||
| 1 | + package com.github.brainlag.nsq; | ||
| 2 | + | ||
| 3 | + import com.github.brainlag.nsq.exceptions.BadMessageException; | ||
| 4 | + import com.github.brainlag.nsq.exceptions.BadTopicException; | ||
| 5 | + import com.github.brainlag.nsq.exceptions.NSQException; | ||
| 6 | + import com.github.brainlag.nsq.exceptions.NoConnectionsException; | ||
| 7 | + import com.github.brainlag.nsq.frames.ErrorFrame; | ||
| 8 | + import com.github.brainlag.nsq.frames.NSQFrame; | ||
| 9 | + import com.github.brainlag.nsq.pool.ConnectionPoolFactory; | ||
| 3 | 10 | import com.google.common.collect.Sets; | |
| 4 | - import io.nsq.exceptions.BadMessageException; | ||
| 5 | - import io.nsq.exceptions.BadTopicException; | ||
| 6 | - import io.nsq.exceptions.NSQException; | ||
| 7 | - import io.nsq.exceptions.NoConnectionsException; | ||
| 8 | - import io.nsq.frames.ErrorFrame; | ||
| 9 | - import io.nsq.frames.NSQFrame; | ||
| 10 | - import io.nsq.pool.ConnectionPoolFactory; | ||
| 11 | 11 | import org.apache.commons.pool2.impl.GenericKeyedObjectPool; | |
| 12 | 12 | import org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig; | |
| 13 | 13 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - package io.nsq; | ||
| 1 | + package com.github.brainlag.nsq; | ||
| 2 | 2 | ||
| 3 | 3 | import java.util.Objects; | |
| 4 | 4 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,9 @@ | |||
| 1 | + package com.github.brainlag.nsq.callbacks; | ||
| 2 | + | ||
| 3 | + import com.github.brainlag.nsq.exceptions.NSQException; | ||
| 4 | + | ||
| 5 | + @FunctionalInterface | ||
| 6 | + public interface NSQErrorCallback { | ||
| 7 | + | ||
| 8 | + void error(NSQException x); | ||
| 9 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | - package io.nsq.callbacks; | ||
| 1 | + package com.github.brainlag.nsq.callbacks; | ||
| 2 | 2 | ||
| 3 | - import io.nsq.NSQMessage; | ||
| 3 | + import com.github.brainlag.nsq.NSQMessage; | ||
| 4 | 4 | ||
| 5 | 5 | @FunctionalInterface | |
| 6 | 6 | public interface NSQMessageCallback { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments