All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vlingo.actors.BroadcastRouter Maven / Gradle / Ivy

Go to download

Type safe Actor Model toolkit for reactive concurrency and resiliency using Java and other JVM languages.

There is a newer version: 1.7.5
Show newest version
// 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"); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy