2 * Copyright (c) 2017 Inocybe Technologies and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.cluster.access.client;
11 * Interface for client actor configuration parameters.
13 * @author Thomas Pantelis
15 public interface ClientActorConfig {
17 * Returns the maximum size in bytes for a message slice when fragmenting messages thru the akka remoting framework.
19 * @return the maximum size in bytes
21 int getMaximumMessageSliceSize();
24 * Returns the threshold in bytes before switching from storing in memory to buffering to a file when streaming
25 * large amounts of data.
27 * @return the threshold in bytes
29 int getFileBackedStreamingThreshold();
32 * Returns the directory in which to create temporary files.
34 * @return the directory name
36 String getTempFileDirectory();
39 * Returns the timer interval whereby, on expiration after response inactivity from the back-end, the connection to
40 * the back-end is torn down and reconnection is attempted.
42 * @return timer interval in nanoseconds.
44 long getBackendAlivenessTimerInterval();
47 * Returns the timeout interval whereby requests are failed.
49 * @return the timeout interval in nanoseconds.
51 long getRequestTimeout();
54 * Returns the timeout interval whereby the client front-end hasn't made progress with the back-end on any request
57 * @return the timeout interval in nanoseconds.
59 long getNoProgressTimeout();