Skip to content

Commit

Permalink
Tidy up styx-api module. (#267)
Browse files Browse the repository at this point in the history
* Move Clock and Clocks classes to styx-common.
* Move Announcer class into `extension` package.
* Restrict `FlowControlDisableOperator` class visibility to package private.
* Remove HttpSupport class from styx-api module.
  • Loading branch information
mikkokar authored Sep 6, 2018
1 parent 2075eff commit c506b27
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* @param <E> event type
*/
public final class FlowControlDisableOperator<E> implements Observable.Operator<E, E> {
final class FlowControlDisableOperator<E> implements Observable.Operator<E, E> {
public static <T> FlowControlDisableOperator<T> disableFlowControl() {
return new FlowControlDisableOperator<T>();
}
Expand Down
47 changes: 0 additions & 47 deletions components/api/src/main/java/com/hotels/styx/api/HttpSupport.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.hotels.styx.api;
package com.hotels.styx.api.extension;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import com.google.common.collect.ImmutableList;
import com.google.common.collect.MapDifference;
import com.hotels.styx.api.Announcer;
import com.hotels.styx.api.extension.Announcer;
import com.hotels.styx.api.Id;
import com.hotels.styx.api.Identifiable;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.hotels.styx.api;
package com.hotels.styx.api.extension;

import org.testng.annotations.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.google.common.collect.ImmutableSet;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import com.hotels.styx.api.Announcer;
import com.hotels.styx.api.extension.Announcer;
import com.hotels.styx.api.HttpHandler;
import com.hotels.styx.api.Id;
import com.hotels.styx.api.extension.ActiveOrigins;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package com.hotels.styx.client.connectionpool.stubs;

import com.hotels.styx.api.Announcer;
import com.hotels.styx.api.extension.Announcer;
import com.hotels.styx.api.HttpRequest;
import com.hotels.styx.api.HttpResponse;
import com.hotels.styx.client.Connection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package com.hotels.styx.client.healthcheck.monitors;

import com.google.common.annotations.VisibleForTesting;
import com.hotels.styx.api.Announcer;
import com.hotels.styx.api.extension.Announcer;
import com.hotels.styx.api.extension.Origin;
import com.hotels.styx.api.extension.service.spi.AbstractStyxService;
import com.hotels.styx.client.healthcheck.OriginHealthCheckFunction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package com.hotels.styx.client.netty.connectionpool;

import com.google.common.annotations.VisibleForTesting;
import com.hotels.styx.api.Announcer;
import com.hotels.styx.api.extension.Announcer;
import com.hotels.styx.api.HttpRequest;
import com.hotels.styx.api.HttpResponse;
import com.hotels.styx.client.Connection;
Expand Down

0 comments on commit c506b27

Please sign in to comment.