io.vlingo.actors.BroadcastRouter Maven / Gradle / Ivy
Show all versions of vlingo-actors Show documentation
// Copyright © 2012-2018 Vaughn Vernon. All rights reserved.
//
// This Source Code Form is subject to the terms of the
// Mozilla Public License, v. 2.0. If a copy of the MPL
// was not distributed with this file, You can obtain
// one at https://mozilla.org/MPL/2.0/.
package io.vlingo.actors;
import java.util.function.BiFunction;
import io.vlingo.common.Completes;
import io.vlingo.common.PentaFunction;
import io.vlingo.common.QuadFunction;
import io.vlingo.common.TriFunction;
/**
* BroadcastRouter
*/
public abstract class BroadcastRouter extends Router
{
protected BroadcastRouter(final RouterSpecification
specification) {
super(specification);
}
/* @see io.vlingo.actors.Router#computeRouting() */
@Override
protected Routing
computeRouting() {
return Routing.with(routees());
}
/* @see io.vlingo.actors.Router#routeQuery(java.util.function.BiFunction, java.lang.Object) */
@Override
protected > R dispatchQuery(BiFunction query, T1 routable1) {
throw new UnsupportedOperationException("query protocols are not supported by this router by default");
}
/* @see io.vlingo.actors.Router#routeQuery(io.vlingo.common.TriFunction, java.lang.Object, java.lang.Object) */
@Override
protected > R dispatchQuery(TriFunction query, T1 routable1, T2 routable2) {
throw new UnsupportedOperationException("query protocols are not supported by this router by default");
}
/* @see io.vlingo.actors.Router#routeQuery(io.vlingo.common.QuadFunction, java.lang.Object, java.lang.Object, java.lang.Object) */
@Override
protected > R dispatchQuery(QuadFunction query, T1 routable1,
T2 routable2, T3 routable3) {
throw new UnsupportedOperationException("query protocols are not supported by this router by default");
}
/* @see io.vlingo.actors.Router#routeQuery(io.vlingo.common.PentaFunction, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object) */
@Override
protected > R dispatchQuery(PentaFunction query,
T1 routable1, T2 routable2, T3 routable3, T4 routable4) {
throw new UnsupportedOperationException("query protocols are not supported by this router by default");
}
}