Skip to content

Commit 4618c33

Browse files
committed
Add new interface for support of layered caching.
Add `SupportsLayeredWheelCache` marker interface that supports different cache layers setting.
1 parent 83009bf commit 4618c33

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright 2016 LinkedIn Corp.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.linkedin.gradle.python.tasks.supports;
17+
18+
import com.linkedin.gradle.python.wheel.WheelCache;
19+
import org.gradle.api.Task;
20+
21+
22+
/**
23+
* Marker interface for tasks that support layered WheelCache
24+
*/
25+
public interface SupportsLayeredWheelCache extends Task {
26+
/**
27+
* Sets the project layer WheelCache instance.
28+
*
29+
* @param wheelCache
30+
*/
31+
void setProjectLayerWheelCache(WheelCache wheelCache);
32+
33+
/**
34+
* Sets the host layer WheelCache instance.
35+
*
36+
* @param wheelCache
37+
*/
38+
void setHostLayerWheelCache(WheelCache wheelCache);
39+
40+
/**
41+
* @return the project layer WheelCache instance.
42+
*/
43+
WheelCache getProjectLayerWheelCache();
44+
45+
/**
46+
* @return the host layer WheelCache instance.
47+
*/
48+
WheelCache getHostLayerWheelCache();
49+
}

0 commit comments

Comments
 (0)