460420a260d230fdf63d28ac2a78e484caeffed5
[controller.git] / opendaylight / md-sal / cds-access-client / src / main / java / org / opendaylight / controller / cluster / access / client / ClientActorConfig.java
1 /*
2  * Copyright (c) 2017 Inocybe Technologies and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.access.client;
9
10 /**
11  * Interface for client actor configuration parameters.
12  *
13  * @author Thomas Pantelis
14  */
15 public interface ClientActorConfig {
16     /**
17      * Returns the maximum size in bytes for a message slice when fragmenting messages thru the akka remoting framework.
18      *
19      * @return the maximum size in bytes
20      */
21     int getMaximumMessageSliceSize();
22
23     /**
24      * Returns the threshold in bytes before switching from storing in memory to buffering to a file when streaming
25      * large amounts of data.
26      *
27      * @return the threshold in bytes
28      */
29     int getFileBackedStreamingThreshold();
30
31     /**
32      * Returns the directory in which to create temporary files.
33      *
34      * @return the directory name
35      */
36     String getTempFileDirectory();
37 }